﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class test : MonoBehaviour {

    Animation anim;
	// Use this for initialization
	void Start () {
        anim = GetComponent<Animation>();
        StartCoroutine(playanim());
        Time.timeScale = 2;
	}
	
	// Update is called once per frame
	void Update () {
		
	}

    IEnumerator playanim()
    {
        while(true)
        {
            anim.Play("standby");
            yield return new WaitForSeconds(8.1f);
            anim.Play("leng");
            yield return new WaitForSeconds(3.5f);
            anim.Play("re");
            yield return new WaitForSeconds(4.2f);
            anim.Play("walk");
            yield return new WaitForSeconds(3.4f);
            anim.Play("shuang");
            yield return new WaitForSeconds(5f);
        }
    }
}
